CS702 - Computer Programming II - First Marking Period




Wednesday October 29, 2014
Goal: Students will be able to implement variables and constants appropriately in programs that are as good as the benchmarks.
Objective: Use arithmetic operators correctly.
DoNow.GIF
Paper and Pencil:
Simplify without a calculator.
1. 2 + 6 / 3 + 1 * 6 - 7
2. (2 + 6) / (3 + 1) * 6 - 7
3. (2 + 6) / (3 + 1) * (6 - 7)
Class_Activity.GIF
Critical Information: When two floats are divided, the answer will be a float.
Critical Information: When two integers are divided, the result will be an integer.
Finish Paper and Pencil Handout: Chapter 1 Summary, Questions, Exercises
Finish Filename: Average.cpp Do numbers 41 and 42 from the packet in Dev-C++ on the computer.
Read: In the green and gold textbook, read pages 70 - 76
Paper and Pencil Handout: Questions on Section 5.1
TicketoutDoor.GIF
Paper and Pencil in Binder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and to your flash drive. Then upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin. Remove your flash drive safely and put it in the ring of your binder.
Turn in papers and return your binder and books to the white shelves.

Tuesday October 28, 2014
Goal: Students will be able to implement variables and constants appropriately in programs that are as good as the benchmarks.
Objective: Define and initialize constants with the standard naming scheme and with the correct data types for the situation.
DoNow.GIF
Paper and Pencil:
1. What data type is 7?
2. What data type is 7.0?
3. What data type is 3?
4. What data type is 3.0?
5. Do you think there will be a difference in result among these expressions in C++, 7/3, 7/3.0, 7.0/3, and 7.0/3.0? Yes No
Class_Activity.GIF
Critical Information: When two floats are divided, the answer will be a float.
Critical Information: When two integers are divided, the result will be an integer.
Finish Paper and Pencil Handout: Chapter 1 Summary, Questions, Exercises

Filename: Average.cpp Do numbers 41 and 42 in Dev-C++ on the computer.
Average & #41.png
TicketoutDoor.GIF
Paper and Pencil in Binder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and to your flash drive. Then upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin. Remove your flash drive safely and put it in the ring of your binder.
Turn in papers and return your binder and books to the white shelves.

Monday October 27, 2014
Goal: Students will be able to implement variables and constants appropriately in programs that are as good as the benchmarks.
Objective: Define and initialize constants with the standard naming scheme and with the correct data types for the situation.
DoNow.GIF
Paper and Pencil:
Re-write these declarations correctly.
1. char Average;
2. float NumStudents;
3. int Letter;
Class_Activity.GIF
Critical Information: char is used for character data only. DO NOT USE char TO DECLARE A VARIABLE TO HOLD THE AirTemp.
Critical Information: To assign a character to a char variable, put the character in single quotes. For example: char Letter = 'B';
Read: In the black textbook, read page 27 and pages 30 - 32.
Paper and Pencil Handout: Chapter 1 Summary, Questions, Exercises
TicketoutDoor.GIF
Paper and Pencil in Binder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and to your flash drive. Then upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin. Remove your flash drive safely and put it in the ring of your binder.
Turn in papers and return your binder and books to the white shelves.

Thursday October 23, 2014
Goal: Students will be able to implement variables and constants appropriately in programs that are as good as the benchmarks.
Objective: Define and initialize constants with the standard naming scheme and with the correct data types for the situation.
DoNow.GIF
Paper and Pencil:
Re-write these declarations correctly.
1. const int Decimal = 2.34e-16;
2. const int Symbol = @;
Class_Activity.GIF
Critical Information: char is used for character data only. DO NOT USE char TO DECLARE A VARIABLE TO HOLD THE AirTemp.
Critical Information: To assign a character to a char variable, put the character in single quotes. For example: char Letter = 'B';
Finish Paper and Pencil Handout: Chapter 4 Summary Problems Refer to page 66 in the green and gold book.
Read: In the black textbook, read page 27 and pages 30 - 32.
Paper and Pencil Handout: Chapter 1 Summary, Questions, Exercises
TicketoutDoor.GIF
Paper and Pencil in Binder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and to your flash drive. Then upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin. Remove your flash drive safely and put it in the ring of your binder.
Turn in papers and return your binder and books to the white shelves

Wednesday October 22, 2014
Goal: Students will be able to implement variables and constants appropriately in programs that are as good as the benchmarks.
Objective: Define and initialize constants with the standard naming scheme and with the correct data types for the situation.
DoNow.GIF
Paper and Pencil:
1. Does the LostFortune.cpp program catch when the user types in bad data such as negatives?
2. What do you think are some options to handle this?
Class_Activity.GIF
Critical Information: char is used for character data only. DO NOT USE char TO DECLARE A VARIABLE TO HOLD THE AirTemp.
Critical Information: To assign a character to a char variable, put the character in single quotes. For example: char Letter = 'B';
Finish Paper and Pencil Handout: Chapter 4 Summary Problems Refer to page 66 in the green and gold book.
Read: In the black textbook, read page 27 and pages 30 - 32.
Paper and Pencil Handout: Chapter 1 Summary, Questions, Exercises
TicketoutDoor.GIF
Paper and Pencil in Binder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and to your flash drive. Then upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin. Remove your flash drive safely and put it in the ring of your binder.
Turn in papers and return your binder and books to the white shelves

Tuesday October 21, 2014
Goal: Students will be able to implement variables and constants appropriately in programs that are as good as the benchmarks.
Objective: Define and initialize constants with the standard naming scheme and with the correct data types for the situation.
DoNow.GIF
Paper and Pencil:
1. True or False: A cout statement is used to prompt the user to enter data.
2. True or False: A cin statement is used to accept data from the user and store it in memory.
3. True or False: A cout statement is used to make results appear on the screen.
4. True or False: #include<iostream> is a compiler directive used prior to the main program section that makes the cin and cout statements work correctly.
5. True or False: Syntax is the word for the grammar of a programming language.
6. True or False: A syntax error may result in the program not running.
7. True or False: A compiler error is probably a syntax error that was caught when you tried to compile and run the program.
8. True or False: A run-time error happens after the program has compiled successfully and is executing.
9. True or False: Units are not part of variables or constants.
10. True or False: Units must be typed by the programmer in the cout statements.
Class_Activity.GIF
Critical Information: char is used for character data only. DO NOT USE char TO DECLARE A VARIABLE TO HOLD THE AirTemp.
Critical Information: To assign a character to a char variable, put the character in single quotes. For example: char Letter = 'B';
Read: Read pages 27 - 30 in the black textbook. Introducing Lost Fortune
C++ Program: LostFortune.cpp Use the directions in your binder, not the code in the book.
Paper and Pencil Handout: Chapter 4 Summary Problems Refer to page 66 in the green and gold book.
TicketoutDoor.GIF
Paper and Pencil in Binder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and to your flash drive. Then upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin. Remove your flash drive safely and put it in the ring of your binder.
Turn in papers and return your binder and books to the white shelves

Monday October 20, 2014
Goal: Students will be able to implement variables and constants appropriately in programs that are as good as the benchmarks.
Objective: Define and initialize constants with the standard naming scheme and with the correct data types for the situation.
DoNow.GIF
Paper and Pencil:
1. Look at the critical information in yellow below.
Which of these statements correctly declares an integer variable and initializes it?
a. char AirTemp = 56;
b. int AirTemp = 'm';
c. int AirTemp = 56;
d. char AirTemp = m;
2. Which of these uses the correct notation?
a. const int FEET_MILE = 5280;
b. const int FeetInMile = 5,280;
3. Which of these uses the correct notation?
a. const float AVOGADRO = 6.02e10-23;
b. const float AVOGADRO# = 6.02x10e23;
c. const float AVOGADRO = 6.02E23;
4. What operator did we use to calculate the remainder in Visual Basic?
a. *
b. /
c. \
d. mod
5. What type of data has to be used with the modulus operator?
a. float
b. int
c. char
d. bool

Compare your answers with another student and try to come to consensus where your answers disagree.

Class_Activity.GIF
Critical Information: char is used for character data only. DO NOT USE char TO DECLARE A VARIABLE TO HOLD THE AirTemp.
Critical Information: To assign a character to a char variable, put the character in single quotes. For example: char Letter = 'B';
Finish: IncrementDecrement.cpp and have it checked.
Read: Read pages 27 - 30 in the black textbook. Introducing Lost Fortune
C++ Program: LostFortune.cpp Use the directions in your binder, not the code in the book.
TicketoutDoor.GIF
Paper and Pencil in Binder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and to your flash drive. Then upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin. Remove your flash drive safely and put it in the ring of your binder.
Turn in papers and return your binder and books to the white shelves

Friday October 17, 2014
Goal: Students will be able to implement variables and constants appropriately in programs that are as good as the benchmarks.
Objective: Define and initialize constants with the standard naming scheme and with the correct data types for the situation.
DoNow.GIF
Paper and Pencil:
1. Explain what this line of code does? Score = Score + 1;
2. Write a line of code like the one above that would increase the score by 20.
3. What does increment mean?
Look on page 23 in the black textbook.
4. Write a new statement that produces the same result as #1, using a combined asignment operator or an increment operator.
5. Write a new statement that produces the same result as #2, using a combined asignment operator or an increment operator.
Class_Activity.GIF
Reading: Performing Arithmetic Operations with Variable -- Read pages 21 - 24 in the black Dawson textbook.
Finish Filename: GameStat2IncrementScores.cpp P. 21
C++ Filename: IncrementDecrement.cpp Directions in binder
Critical Information: ++ is the increment operator, which when attached to a variable makes it value increase by one.
Critical Information: Likewise -- is the decrement operator, which decreases the value of the variable by one.
TicketoutDoor.GIF
Paper and Pencil in Binder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and to your flash drive. Then upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin. Remove your flash drive safely and put it in the ring of your binder.
Turn in papers and return your binder and books to the white shelves

Thursday October 16, 2014
Goal: Students will be able to implement variables and constants appropriately in programs that are as good as the benchmarks.
Objective: Define and initialize constants with the standard naming scheme and with the correct data types for the situation.
DoNow.GIF
Paper and Pencil:
1. True or False: enum is a keyword in C++.
2. True or False: An enumeration is a set of unsigned integer constants that is given a name by the programmer.
3. True or False: The enumerators are the constants so they are typed in all capital letters.
4. True or False: The name of the enumeration acts like a programmer defined data type.
5. True or False: When the enumerators are not given values, they automatically get values starting at 0 and going up by 1.
6. What are the values of the enumerators in this declaration statement? enum size {KIDS, SMALL, MEDIUM, LARGE, SUPER}
7. What are the values of the enumerators in this declaration statement? enum size {XS = 2, SM = 4, MED = 6, LARGE = 10, XL, XXL}
Class_Activity.GIF
Reading: Performing Arithmetic Operations with Variable -- Read pages 21 - 24 in the black Dawson textbook.
Filename: GameStat2IncrementScores.cpp P. 21
Critical Information: ++ is the increment operator, which when attached to a variable makes it value increase by one.
Critical Information: Likewise -- is the decrement operator, which decreases the value of the variable by one.
TicketoutDoor.GIF
Paper and Pencil in Binder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and to your flash drive. Then upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin. Remove your flash drive safely and put it in the ring of your binder.
Turn in papers and return your binder and books to the white shelves

Wednesday October 15, 2014
Goal: Students will be able to implement variables and constants appropriately in programs that are as good as the benchmarks.
Objective: Define and initialize constants with the standard naming scheme and with the correct data types for the situation.
DoNow.GIF
Paper and Pencil:
1. In a game, if you earn 30 points every time you get fairy dust and you got dusted by the fairy 7 times, how many points did you earn with fairy dust?
2. Points = Dustings * FAIRY_DUST; //Write the 3 declaration statements and a comment with each, for this line of code that refers to the idea in #1.
3. Write an output statement to display the number of points you have accrued. Use at least 1 string literal and 1 variable in the output statement.
Class_Activity.GIF
Reading: Working with Constants: Using Constants & Using Enumerations -- Read pages 25 - 27 in the black Dawson textbook.
Filename: GameStat3ResourcePoints.cpp Directions in binder.
Critical Information: Enumerations are unsigned integer constants that can be made to have meaning identifiers for your program.
Critical Information: Pay attention to how it is easy to understand what values can change and what stays the same when constants are in all UPPERCASE.
TicketoutDoor.GIF
Paper and Pencil in Binder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and to your flash drive. Then upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin. Remove your flash drive safely and put it in the ring of your binder.
Turn in papers and return your binder and books to the white shelves

Tuesday October 14, 2014
Goal: Students will be able to implement variables and constants appropriately in programs that are as good as the benchmarks.
Objective: Define and initialize constants with the standard naming scheme and with the correct data types for the situation.
DoNow.GIF
Read: Read the code and comments of the Character.cpp program in the back of your binder. Do NOT type it yet.
Paper and Pencil:
1. What is the ASCII code of the infinity symbol?
2. Which of these are variable identifiers, Letter, Character, INFINITY, EXPT?
3. What is the ASCII code of the division symbol?
Class_Activity.GIF
Filename: Character.cpp Directions in binder.
Critical Information: Special characters can be referred to by their ASCII codes, since they cannot be typed from the keyboard.
Critical Information: To get a character from its ASCII you use the char data type.
Have Checked: Analyze.cpp from page 6 of the paper and pencil questions.
Turn In: Ch. 4 / Ch. 1 Variables and Constants Questions pages 1 - 7
TicketoutDoor.GIF
Paper and Pencil in Binder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin.
Turn in papers and return your binder and books to the white shelves

Friday October 10, 2014
Goal: Students will be able to implement variables and constants appropriately in programs that are as good as the benchmarks.
Objective: Define and initialize constants with the standard naming scheme and with the correct data types for the situation.
DoNow.GIF
Paper and Pencil:
1. When typing a number into a line of code, are comas used? Yes or No
2. Are units included in the value of a numeric variable? Yes or No
3. If the constant for the number of feet in a mile is 5,280 what data type should be used in the declaration?
4. Why?
5. Create a constant definition for the number of feet in a mile.
Class_Activity.GIF
Filename: Analyze.cpp from page 6 of the paper and pencil questions.
Finish Paper and Pencil Handout: Ch. 4 / Ch. 1 Variables and Constants Questions pages 1 - 7
Critical Information: A constant definition starts with the keyword, const, followed by the data type of the value.
Critical Information: Constant identifiers must be typed in all CAPITAL letters.
Critical Information: Then an = sign is typed followed by the constant value in the proper syntax for the specific data type.
TicketoutDoor.GIF
Paper and Pencil in Binder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin.
Turn in papers and return your binder and books to the white shelves

Thursday October 9, 2014
Goal: Students will be able to implement variables and constants appropriately in programs that are as good as the benchmarks.
Objective: Define and initialize constants with the standard naming scheme and with the correct data types for the situation.
DoNow.GIF
Paper and Pencil:
1. Type constant identifiers in all _. a) lowercase b) uppercase
For the next questions, either explain the error or rewrite the statement correctly.
2. What is wrong with this constant definition? const char Symbol = '$';
3. What is wrong with this variable declaration and initialization? char Symbol = $;
4. What is wrong with this constant definition? const float MINWAGE = $7.50;
5. What is wrong with this variable assignment statement? Salary = 58,000;
Class_Activity.GIF
Filename: Complete.cpp from page 4 of the paper and pencil questions.
Paper and Pencil Handout: Ch. 4 / Ch. 1 Variables and Constants Questions pages 5 and 6.
Critical Information: A constant definition starts with the keyword, const, followed by the data type of the value.
Critical Information: Constant identifiers must be typed in all CAPITAL letters.
Critical Information: Then an = sign is typed followed by the constant value in the proper syntax for the specific data type.
TicketoutDoor.GIF
Paper and Pencil in Binder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin.
Turn in papers and return your binder and books to the white shelves

Wednesday October 8, 2014 (EARLY DISMISSAL DAY)
Goal: Students will be able to implement variables and constants appropriately in programs that are as good as the benchmarks.
Objective: Define and initialize constants with the standard naming scheme and with the correct data types for the situation.
DoNow.GIF
Paper and Pencil:
1. Rewrite this constant definition correctly. Integer Constant MinWage - $7.25: //The minimum wage in PA
2. Rewrite this variable declaration correctly. Float NumPresidents;
3. A program will not show results without an appropriate cout statement. True or False
Class_Activity.GIF
FINISH
Paper and Pencil Handout: Ch. 4 / Ch. 1 Variables and Constants Questions pages 3 and 4.
Filename: Complete.cpp
Critical Information: A program must have appropriate cout statements or the user will not see the results.
Critical Information: Commas may not be used when assigning values to numeric variables.
TicketoutDoor.GIF
Paper and Pencil in Binder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin.
Turn in papers and return your binder and books to the white shelves

Tuesday October 7, 2014
Goal: Students will be able to implement variables and constants appropriately in programs that are as good as the benchmarks.
Objective: Define and initialize constants with the standard naming scheme and with the correct data types for the situation.
Objective: Debug programs with variables and constants.
DoNow.GIF
Paper and Pencil:
1. If cout is undefined, perhaps you are missing an important line at the top that starts with using. Write that full line.
2. If cout is undefined, perhaps you are missing a different important line at the top that starts with #. Write that full line.
3. So far, where have we used curly braces? { and }
4. Are curly braces the same as parentheses? Yes or No
Class_Activity.GIF
Paper and Pencil Handout: Ch. 4 / Ch. 1 Variables and Constants Questions pages 3 and 4.
Filename: Complete.cpp
Critical Information: Read error messages and study the code to find errors.
Critical Information: Commas may not be used when assigning values to numeric variables.
TicketoutDoor.GIF
Paper and Pencil in Binder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin.
Turn in papers and return your binder and books to the white shelves

Monday October 6, 2014
Goal: Students will be able to implement variables and constants appropriately in programs that are as good as the benchmarks.
Objective: Define and initialize constants with the standard naming scheme and with the correct data types for the situation.
Objective: Debug programs with variables and constants.
DoNow.GIF
Paper and Pencil:
1. What is different about the way an identifier for a variable is typed and the way an identifier for a constant should be typed?
2. Explain why you think that it is helpful to do it this way.
3. What type of statement is used to produce a prompt to tell the user what to enter?
4. What type of statement is used to accept the input from the user?
5. What are syntax errors?
Class_Activity.GIF
Filename: SubtractDebug.cpp Debug the program. SubtractDebug.cpp
Paper and Pencil Handout: Ch. 4 / Ch. 1 Variables and Constants Questions pages 3 and 4.
Critical Information: Read error messages and study the code to find errors.
Critical Information: Commas may not be used when assigning values to numeric variables.
TicketoutDoor.GIF
Paper and Pencil in Binder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin.
Turn in papers and return your binder and books to the white shelves

Friday October 3, 2014
Goal: Students will be able to implement variables and constants appropriately in programs that are as good as the benchmarks.
Objective: Define and initialize constants with the standard naming scheme and with the correct data types for the situation.
Objective: Debug programs with variables and constants.
DoNow.GIF
Paper and Pencil:
1. Write a constant declaration for the number 3 x 10^-18.
Correct the errors in these declarations and initializations.
2. int Letter = 'R';
3. char Age = 16;
Class_Activity.GIF
Filename: SubtractDebug.cpp Debug the program. SubtractDebug.cpp
Paper and Pencil Handout: Ch. 4 / Ch. 1 Variables and Constants Questions pages 3 and 4.
Critical Information: Use meaningful variable names and appropriate data types.
Critical Information: Commas may not be used when assigning values to numeric variables.
TicketoutDoor.GIF
Paper and Pencil in Binder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin.
Turn in papers and return your binder and books to the white shelves

Thursday October 2, 2014
Goal: Students will be able to implement variables and constants appropriately in programs that are as good as the benchmarks.
Objective: Define and initialize constants with the standard naming scheme and with the correct data types for the situation.
DoNow.GIF
Paper and Pencil:
1. Give 2 reasons for declaring variable with the appropriate data type.
2. What is the difference between the int data type and the char data type?
3. char should be used only for what?
Class_Activity.GIF
Discuss Handout: Ch. 4 / Ch. 1 Variables and Constants Questions pages 1 and 2.
Discuss: Gaggle issues
Critical Information: Use meaningful variable names and appropriate data types.
Critical Information: Commas may not be used when assigning values to numeric variables.
TicketoutDoor.GIF
Paper and Pencil in Binder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin.
Turn in papers and return your binder and books to the white shelves

Wednesday October 1, 2014
Goal: Students will be able to implement variables and constants appropriately in programs that are as good as the benchmarks.
Objective: Define and initialize constants with the standard naming scheme and with the correct data types for the situation.
DoNow.GIF
Paper and Pencil:
1. Once a constant has been defined as a constant with a data type and a value, can that constant be given a new value with an assignment statement, later in the code? Yes or No
2. Explain how you know.
3. What happens when you put a float value in an integer variable? Provide an example.
Class_Activity.GIF
Read Online: http://www.tutorialspoint.com/cplusplus/cpp_data_types.htm
Filename: DataTypeSizes.cpp start with Blank.cpp and add code from the website above. Also add other data types listed in both books. P 16 black page 56 and 58 green and gold
Paper and Pencil Handout: Ch. 4 / Ch. 1 Variables and Constants Questions pages 1 and 2.
Critical Information: Use meaningful variable names and appropriate data types.
Critical Information: Constants identifiers may not be assigned new values later in the program after the definition is made.
TicketoutDoor.GIF
Paper and Pencil in Binder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin.
Turn in papers and return your binder and books to the white shelves.

Tuesday September 30, 2014
Goal: Students will be able to implement variables and constants appropriately in programs that are as good as the benchmarks.
Objective: Assign values to variables and constants.
DoNow.GIF
Think - Pair - Share:
Compare and contrast variables and constants.
Hypothesize:
Can you assign a constant to a variable?
Can you assign a variable to a constant?
Class_Activity.GIF
From Gaggle Digitial Locker: Save you Blank.cpp program to the desktop with the name AssignExample.cpp
Change all occurrences of Blank.cpp to AssignExample.cpp
C++ Filename: AssignExample.cpp
Directions in binder.
Critical Information: Use meaningful variable names and appropriate data types.
Critical Information: Consistency in spelling is essential.
TicketoutDoor.GIF
Paper and Pencil in Binder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin.
Turn in papers and return your binder and books to the white shelves.


Monday September 29, 2014
Goal: Students will be able to implement variables and constants appropriately in programs that are as good as the benchmarks.
Objective: Define and initialize constants with the standard naming scheme and with the correct data types for the situation.
DoNow.GIF
Paper and Pencil:
1. Write a statement to declare a decimal variable named Height.
2. True or False: Constant identifiers and variable names may not be the same as keywords in C++.
3. Which of these has the proper syntax for a variable name?
a. Room Width
b. Room-Width
c. RoomWidth
d. Room_Width
e. both c and d
4. Since = is the assignment operator, what kind of statement is it used in the most?
a. variable declaration
b. input statement
c. output statement
d. compiler directive
e. assignment statement
Class_Activity.GIF
Read: Ch. 4 Section 4.3 Constants P. 64 - 66 in the green and gold textbook.
Paper and Pencil Handout: Questions on Using Constants 1-5
C++ Filename: CircleCircumference.cpp
Create a program that will calculate the circumference of a circle when the user provides the radius. See test data, output and requirement check off list in your binder.
Critical Information: Use meaningful variable names and appropriate data types.
Critical Information: Consistency in spelling is essential.
TicketoutDoor.GIF
Paper and Pencil in Binder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin.
Turn in papers and return your binder and books to the white shelves.


Friday September 26, 2014
Goal: Students will be able to work within the Dev-C++ IDE (Integrated Development Environment) comfortably.
Objective: Declare and initialize variables with a standard naming scheme and with the correct data types for the situation.
DoNow.GIF
Paper and Pencil:
1. Write a statement to declare a decimal variable named Height.
2. True or False: Constant identifiers and variables names may not be the same as keywords in C++.
3. Which of these has the proper syntax for a variable name?
a. Room Width
b. Room-Width
c. RoomWidth
d. Room_Width
e. either c or d
4. Since = is the assignment operator, what kind of statement is it used in the most?
a. variable declaration
b. input statement
c. output statement
d. compiler directive
e. assignment statement
Class_Activity.GIF
C++ Program as Assessment: RectArea.cpp (Directions in binder.) Do silently and individually.
Self-Evaluate the program.
Critical Information: Use meaningful variable names and appropriate data types.
Critical Information: Include comments so others will know what is happening in your program.
TicketoutDoor.GIF
Paper and Pencil in Binder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin.
Turn in papers and return your binder and books to the white shelves.


Thursday September 25, 2014
Goal: Students will be able to work within the Dev-C++ IDE (Integrated Development Environment) comfortably.
Objective: Declare and initialize variables with a standard naming scheme and with the correct data types for the situation.
DoNow.GIF
Paper and Pencil:
1. What is the data type used for a single character?
2. What is the data type used for a decimal?
3. What is the data type used for an integer?
4. Write a constant definition for 3.14159 using the standard identifier naming scheme.
5. Write 32000000000 in exponential notation for a computer.
6. Write the line of code that will initialize the character variable Symbol to the asterisk.
Class_Activity.GIF
Notes:
  • char data type
  • ASCII codes
  • Assigning character values to a char variable
  • Exponential and scientific notation
  • Constant definition
Critical Information: Do not use commas when declaring, initializing, or inputting floating point numbers.
Critical Information: Constant identifiers must be typed in all capital letters so it can be recognized as a constant when looking at the code.
TicketoutDoor.GIF
Paper and Pencil in Binder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin.
Turn in papers and return your binder and books to the white shelves.


Wedneday September 24, 2014
Goal: Students will be able to work within the Dev-C++ IDE (Integrated Development Environment) comfortably.
Objective: Declare and initialize variables with a standard naming scheme and with the correct data types for the situation.
DoNow.GIF
Early Dismissal Day
Class_Activity.GIF
Finish C++ Programs:
Finish Paper and Pencil Assignments:
Critical Information: Different data types use different amounts of computer memory.
Critical Information: Choosing the correct data type is important to the functionality and efficiency of the program.
TicketoutDoor.GIF
Paper and Pencil in Binder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin.
Turn in papers and return your binder and books to the white shelves.


Tuesday September 23, 2014
Goal: Students will be able to work within the Dev-C++ IDE (Integrated Development Environment) comfortably.
Objective: Declare and initialize variables with a standard naming scheme and with the correct data types for the situation.
DoNow.GIF
Read: Green & Gold textbook pages 60 - 64.
Read: Black Dawson textbook pages 15 - 19
Class_Activity.GIF
Paper and Pencil Handout: Questions on Using Variables 1-5
3 B's Before Me: Find 3 ways to solve your problem before going to the teacher.
  1. Brain - Think about it.
  2. Browse - Look through your materials and resources. Look on the computer.
  3. Buddy - Ask another student for help.
C++ Filename: DataType2.cpp Start with DataType.cpp and follow directions on handout in binder.
Check your neighbors program and have your neighbor check yours before calling Miss Hangen to check it.
Critical Information: Different data types use different amounts of computer memory.
Critical Information: Choosing the correct data type is important to the functionality and efficiency of the program.
TicketoutDoor.GIF
Paper and Pencil in Folder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin.
Turn in papers and return your binder and books to the white shelves.

Monday September 22, 2014
Goal: Students will be able to work within the Dev-C++ IDE (Integrated Development Environment) comfortably.
Objective: Declare and initialize variables with a standard naming scheme and with the correct data types for the situation.
DoNow.GIF
Compare the charts on page 16 of black text with page 56 and 58 of the green and gold text.
Notice that there are some differences and that different compilers may be slightly different as well.
Paper and Pencil: Green & Gold textbook P. 59 Section 4.1 Questions 1-4
Class_Activity.GIF
3 B's Before Me: Find 3 ways to solve your problem before going to the teacher.
  1. Brain - Think about it.
  2. Browse - Look through your materials and resources. Look on the computer.
  3. Buddy - Ask another student for help.
C++ Filename: DataType.cpp Start with Blank.cpp and follow directions on handout in binder.
Check your neighbors program and have your neighbor check yours before calling Miss Hangen to check it.
Critical Information: Different data types use different amounts of computer memory.
Critical Information: Choosing the correct data type is important to the functionality and efficiency of the program.
TicketoutDoor.GIF
Paper and Pencil in Folder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin.
Turn in papers and return your binder and books to the white shelves.

Friday September 19, 2014
Goal: Students will be able to work within the Dev-C++ IDE (Integrated Development Environment) comfortably.
Objective: Declare and initialize variables with a standard naming scheme and with the correct data types for the situation.
DoNow.GIF
Paper and Pencil then Discuss:
Without looking it up, do you know...?
1. the data type used for a single character?
2. the data type used for a decimal?
3. the data type used for an integer?
4. the standard way to type constants?
5. the format for defining a constant?
6. what exponential notation looks like?
7. the way to assign a character value to a variable?
Read: Read the paragraph on page 63 of the green and gold C++ textbook to learn about exponential notation, which is used like scientific notation.
8. Write 6.387 x 10^5 in exponential notation that would be used on a computer.
9. Write 8.223e-004 in scientific notation that way it would be used in science class.
Class_Activity.GIF
C++ Program: IDeclare.cpp (directions in your binder)
Paper and Pencil: page 6 of IDeclare.cpp directions has questions 1 - 11 for you to answer.
Critical Information: Different data types use different amounts of computer memory.
Critical Information: Choosing the correct data type is important to the functionality and efficiency of the program.
3 B's Before Me: Find 3 ways to solve your problem before going to the teacher.
  1. Brain - Think about it.
  2. Browse - Look through your materials and resources. Look on the computer.
  3. Buddy - Ask another student for help.
TicketoutDoor.GIF
Paper and Pencil in Binder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin.
Turn in papers and return your binder and books to the white shelves.

Thursday September 18, 2014
Goal: Students will be able to work within the Dev-C++ IDE (Integrated Development Environment) comfortably.
Objective: Understand entering, compiling, debugging, and running a C++ program.
DoNow.GIF
Get Blank.cpp from you Gaggle digital locker and save it to the desktop as YourAge.cpp
Class_Activity.GIF
C++ Program: YourAge.cpp Thoroughly document the program with comments explaining the debugging corrections that you made.
Critical Information: Read the highlighted error message and determine what it means.
Critical Information: Fix the first error then compile and run the program and repeat that process.
3 B's Before Me: Find 3 ways to solve your problem before going to the teacher.
  1. Brain - Think about it.
  2. Browse - Look through your materials and resources. Look on the computer.
  3. Buddy - Ask another student for help.
TicketoutDoor.GIF
Paper and Pencil in Binder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin.
Turn in papers and return your binder and books to the white shelves.

Wednesday September 17, 2014
Goal: Students will be able to work within the Dev-C++ IDE (Integrated Development Environment) comfortably.
Objective: Understand entering, compiling, and running a C++ program.
DoNow.GIF
Read: Chapter 3 in the green and gold textbook.
Class_Activity.GIF
3 B's Before Me: Find 3 ways to solve your problem before going to the teacher.
  1. Brain - Think about it.
  2. Browse - Look through your materials and resources. Look on the computer.
  3. Buddy - Ask another student for help.
Paper and Pencil Handout: Ch3. Entering, Compiling, and Running a Program Questions
3 pages
TicketoutDoor.GIF
Paper and Pencil in Binder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin.
Turn in papers and return your binder and books to the white shelves.



Tuesday September 16, 2014
Goal: Students will be able to work within the Dev-C++ IDE (Integrated Development Environment) comfortably.
Objective: Declare and initialize variables with the correct data types for the situation.
DoNow.GIF
Paper and Pencil: What do you remember about data types from last year?
Class_Activity.GIF
Read: In black textbook P. 13 - 21
C++ Filename: GameStats.cpp (start with Blank.cpp) Directions are in your binder.
Check your neighbors program and have your neighbor check yours before calling Miss Hangen to check it.
Critical Information: Different data types have different properties and different operations associated with them.
Critical Information: Using the correct data type makes a program more efficient.
TicketoutDoor.GIF
Paper and Pencil in Folder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin.
Turn in papers and return your binder and books to the white shelves.


Monday September 15, 2014
Goal: Students will be able to work within the Dev-C++ IDE comfortably.
Objective: Students will understand the programming process and the general outline of the source code of a program.
Objective: Students will understand the importance of comments.
DoNow.GIF
Debug: CommentErrors.cpp Right click on the file and choose, Save link as.... to save it to the desktop.
C++ Filename: Comments.cpp When you programs is correct show it to Miss Hangen and upload to your digital lockers as Comments.cpp.
Class_Activity.GIF
Critical Information: Creating a computer program is a multi-step process.
Critical Information: Comments are ignored by the compiler but are critical to the programmers.
C++ Filename: Travel.cpp Refer to the directions paper in your binder.
Also make sure to use printer friendly system colors and include cout statements with the directions to the user.
TicketoutDoor.GIF
Paper and Pencil in Folder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin.
Turn in papers and return your binder and books to the white shelves.

Friday September 12, 2014
Goal: Students will be able to work within the Dev-C++ IDE comfortably.
Objective: Students will understand the programming process and the general outline of the source code of a program.
DoNow.GIF
Get a green & gold textbook.
Read: pages 29-30
Class_Activity.GIF
Critical Information: Creating a computer program is a multi-step process.
Critical Information: Comments are ignored by the compiler but are critical to the programmers.
Paper and Pencil: P. 32 Section 2.2 Questions 3, 4
Read: pages 33 - 39
Paper and Pencil: P. 38 Section 2.3 Questions 1-7
Read: P. 44 - 48
Paper and Pencil: P. 48 Section 3.1 Questions 1 - 5
TicketoutDoor.GIF
Paper and Pencil in Folder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin.
Turn in papers and return your binder and books to the white shelves.


Thursday September 11, 2014
Goal: Students will be able to work within the Dev-C++ IDE comfortably.
Objective: Understand the benefit of using namespace std.
DoNow.GIF
Finish: GameOver.cpp from yesterday.
Class_Activity.GIF
Critical Information: using namespaces std allows for less typing.
Critical Information: When starting a new program with the Blank.cpp template save the file with the new name immediately and change all occurrences of Blank.cpp to the filename of the new program.
C++ Program: GameOver2.cpp P. 9
Redo the GameOver.cpp program like the one on page 9 in the textbook and save it as GameOver2.cpp
Eliminate the std:: from the cin.ignore line of code. cin.ignore(cin.rdbuf()->in_avail() + 1;
Reread P. 11 in the real world, to see why you must follow our class procedures as Miss Hangen directs.
C++ Program: ExpensiveCalculator.cpp
Find Blank.cpp in your Gaggle digital locker. Save it to the desktop with the filename, ExpensiveCalculator.cpp
Fill in the code from p. 12 and adjust as necessary.
TicketoutDoor.GIF
Paper and Pencil in Folder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin.
Turn in papers and return your binder and books to the white shelves.

Wednesday September 10, 2014
Goal: Students will be able to work within the Dev-C++ IDE comfortably.
Objective: Make and use a template program with the outline of documentation and the basic structure used.
DoNow.GIF
Early Dismissal Day
Filename: Blank.cpp Follow directions on handout in your white binder.
Make the template program that you will use to start many of your programs.
Upload it to your Gaggle digital locker.
Class_Activity.GIF
Critical Information: A template program saves time and guarantees you have your main documentation and basic structure correct.
Critical Information: When starting a new program with the Blank.cpp template save the file with the new name immediately and change all occurrences of Blank.cpp to the filename of the new program.
C++ Program: GameOver.cpp
Find Blank.cpp in your Gaggle digital locker. Save it to the desktop with the filename, GameOver.cpp
Delete the using namespace std; line.
Change and add the appropriate code to do the program GameOver.cpp which appears on page 5 in the textbook.
Replace system("pause"); with the 2nd line of code at the top of page 9 in the trick section.
TicketoutDoor.GIF
Paper and Pencil in Folder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin.
Turn in papers and return your binder and books to the white shelves.

Tuesday September 9, 2014
Goal: Students will be able to work within the Dev-C++ IDE comfortably.
Objective: Identify and understand the types of errors a program can have.
DoNow.GIF
Paper and Pencil:
1. What does I/O stand for?
Class_Activity.GIF
Read: Chapter 1 pages 1 - 11 in the black book.
Critical Information: Compiler errors are syntax errors which could be as simple as a typo, so proofreading is a good way to find them.
Critical Information: A program is not complete until it looks good, is commented thoroughly, and gives the desired results.
Paper and Pencil: (same paper as Do Now)
2. What does IDE stand for?
3. What IDE are we using in this class?
4. Explain the 3 basic types of errors you may encounter.
5. Explain why comments are used.
6. Explain what the line using namespace std; is used for.
TicketoutDoor.GIF
Paper and Pencil in Folder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin.
Turn in papers and return your binder and books to the white shelves.

Monday September 8, 2014
Goal: Students will be able to work within the Dev-C++ IDE comfortably.
Objective: Debug a simple program.
DoNow.GIF
Online: From our class website, save the file InputError.cpp to your desktop as Input.cpp

Class_Activity.GIF
Critical Information: Read the highlighted error message and determine what it means.
Critical Information: Fix the first error then compile and run the program and repeat that process.
C++ Program: Input.cpp Fix the errors in the program.
Discuss: Input.cpp with the students near you.
TicketoutDoor.GIF
Paper and Pencil in Folder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin.
Turn in papers and return your binder and books to the white shelves.

Friday September 5, 2014
Goal: Students will be able to find their way around the Dev-C++ compiler and text editor.
Objective: Change the background and text colors for the console output of a program to save ink when printing.
Objective: To practice using the proper procedures for working with Dev-C++ source code files and Gaggle..
DoNow.GIF
Paper and Pencil:
1. How many different colors are available for our console backgrounds?
2. How many different colors are available for our console text?
3. How many different pairs of colors are available when you use different colors for the background and text? Show how you calculated that.
4. Are all color pairs reasonable to use? Yes or No
5. Why or why not?
6. Write the line of code for the system color pair that would best save ink and be easy to read.
Class_Activity.GIF
C++ Program: ConsoleColors.cpp
Critical Information: In system("color f0"); f can be lowercase or uppercase, and the character after the f is a zero, not the letter O.
Critical Information: If the word system or color is undefined, check the spelling of #include<iostream>.
TicketoutDoor.GIF
Paper and Pencil: (same paper as Do Now)
7. When you run the program, what is the initial system color background?
8. When you run the program, what is the ending system color background?
9. What line of text is produced in the output window with system("pause");?

Paper and Pencil in Folder: Activity Log and Reflection (5 min)
  • Track your progress on the current assignment.
  • Reflect on what you learned today with a sentence that can start with one of the prompts shown at the bottom of the sheet.
Save your file to the desktop and upload it to your Gaggle digital locker.
Delete your files off the desktop and empty the recycle bin.
Turn in papers and return your binder and books to the white shelves.